package role;

import communication.ParameterizedMessage;
import communication.ParameterizedMessageImpl;
import communication.SubjectRequestHandler;

public class SlaveInfoRequestHandler extends SubjectRequestHandler {

	public SlaveInfoRequestHandler() {
		super("Role::SlaveInfo");
	}

	@Override
	public ParameterizedMessage handle(ParameterizedMessage message) {
		ParameterizedMessage infoMessage = new ParameterizedMessageImpl("SlaveInfo");
		infoMessage.setParameter("isSlave", "true");
		return infoMessage;
	}

}
